package com.imooc.girl;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "/hello")
public class HelloController {

    @GetMapping(value = "/{id}/say") // 组合注解
    public String say(@PathVariable(value = "id") Integer myId) {
        return "id:" + myId;
    }

}
